package cc.xuanhaojituan.mongodb.model;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author chenli
 * @create 2017-09-15
 */
@Document(collection = "test_user")
public class User {
    private String userName;

    private String password;

    private Date addTime;

    public String getUserName() {
        return userName;
    }

    public User setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public Date getAddTime() {
        return addTime;
    }

    public User setAddTime(Date addTime) {
        this.addTime = addTime;
        return this;
    }

}